package dubbo.customer;

import dubbo.netty.NettyClient;
import dubbo.publicinterface.HelloService;

/**
 * 描述:
 *
 * @author
 * @created 2022/1/12 19:58
 */
public class ClientBootstrap {

    public static final String providerName = "HelloService#hello#";

    public static void main(String[] args) {
        NettyClient nettyClient = new NettyClient();
        HelloService service = (HelloService)nettyClient.getBean(HelloService.class, providerName);
        /*通过代理对象调用服务提供者的方法*/
        String res = service.hello("你好 dubbno");
        System.out.println("调用的结果" + res);
    }

}
